import React from 'react'
import { PageHeader } from 'antd';
import Styles from './css/app.less'
import {useModel,history} from 'umi'
import {useState,useEffect} from 'react'
const Appress: React.FC = () => {
    let [valueAdd,updataAdd]=useState([])
    let {Address}=useModel('user')
    console.log()
   
    useEffect(() => {
        const add= async ()=>{

            let res=await Address()
            console.log(res)
        }
        add()
    }, [])
    return <div>
        <div className="left">
            <PageHeader
                className={Styles.header}
                onBack={() => history.go(-1)}
                title="地址管理"
            />
        </div>
        <div className={Styles.conter}>
           1
        </div>
        <div className={Styles.right}>
        <button onClick={()=>history.push('/urladd')}>新增地址</button>
        </div>
    </div>
}

export default Appress